#!/usr/bin/env python3
# -*- coding: utf-8 -*-

ERR_SUCCESS = '30'
ERR_NO_VIN = '32'
ERR_LENGTH_VIN = '31'
ERR_TCP_ERROR = '41'
ERR_UNKNOWN = '99'
ERR_CORRUPT_ETKA = '98'
ERR_NOT_SUPPORTED_BRAND = '97'
ERR_SERVER_NOT_LOGON = '82'
ERR_NO_CONTENT = '93'


class CommonError(Exception):
    def __init__(self, status, message):
        self.status = status
        self.message = message
        self.args = (status, message)
